package com.heima.com;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Set;

public class Demo2 {
    public static void main(String[] args) {
        ArrayList<Integer> arraylist = new ArrayList<>();
        arraylist.add(1111);
        arraylist.add(2222);
        arraylist.add(3333);
        arraylist.add(4444);
        arraylist.add(5555);
        arraylist.stream().forEach(s-> System.out.println(s));
        System.out.println("===============================");
        HashMap<Integer, String > hm = new HashMap<>();
        hm.put(1111,"huhuhu");
        hm.put(2222,"vdvdvf");
        hm.put(3333,"eterrg");
        hm.put(4444,"afdsfe");
        hm.put(5555,"fefasf");
        System.out.println("===============================");
        Set<Integer> in = hm.keySet();
        in.stream().forEach(s-> System.out.println(s));

        int[] arr = {1,2,3,4,5};
        Arrays.stream(arr);


    }
}
